package com.mall.group_booking.service;

import com.github.pagehelper.PageInfo;
import com.mall.entity.groupbooking.GbActivity;

/**
 * @author White
 * @version 1.0
 * @email 616769721@qq.com
 * @date 2021/7/30 8:46
 */
public interface BookingActivityService {
    /**
     * 添加拼团活动到redis中
     */
    void addActivityToRedis();

    /**
     * 添加活动
     *
     * @param activity 活动
     * @return boolean
     */
    void addActivity(GbActivity activity);

    PageInfo<GbActivity> findPage(GbActivity activity, int page, int size);

    void updateStatusById(Long id, String status);


    void delActivityOne(Long id);
}
